home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000152_amos-request@svcs1.digex.net_Tue Sep 16 20:21:30 1997.msg < prev    next >
Text File  |  1997-10-01  |  5KB  |  134 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id UAA24214
  3.     for <mcox@access.digex.net>; Tue, 16 Sep 1997 20:21:29 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id RAA00248
  6.     for amos-out; Tue, 16 Sep 1997 17:07:11 -0400 (EDT)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id RAA00245
  9.     for <amos-list@svcs1.digex.net>; Tue, 16 Sep 1997 17:07:10 -0400 (EDT)
  10. Received: from punt-1.mail.demon.net (punt-1b.mail.demon.net [194.217.242.135])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with SMTP id RAA10988
  12.     for <amos-list@access.digex.net>; Tue, 16 Sep 1997 17:07:07 -0400 (EDT)
  13. Received: from agasinc.demon.co.uk ([193.237.4.98]) by punt-1.mail.demon.net
  14.            id ab1403732; 16 Sep 97 21:05 BST
  15. From: Andy Gibson <andy@agasinc.demon.co.uk>
  16. To: Amos List <amos-list@access.digex.net>
  17. Date: Tue, 16 Sep 1997 19:59:21 -0000
  18. Message-ID: <yam7198.1099.3673976@post.demon.co.uk>
  19. In-Reply-To: <0000E7BD.@modusmedia.com>
  20. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  21. Organization: AGAS Productions
  22. Subject: Re: Memory Banks??
  23. MIME-Version: 1.0
  24. Content-Type: text/plain; charset=iso-8859-1
  25. Content-Transfer-Encoding: 8bit
  26. X-MIME-Autoconverted: from quoted-printable to 8bit by svcs1.digex.net id RAA00246
  27. Status: O
  28. X-Status: 
  29.  
  30. On 13-Sep-97, Declan_Gorman@modusmedia.com wrote:
  31. >     
  32. >     Greetings,
  33.  
  34. Hi there...
  35.  
  36. > This is my first attempt at using and manipulating memory banks and 
  37. > I know I may have picked a bad way to start but bear with me.  Before 
  38. > I go into the details my first question is would I have to use machine 
  39. > code to manipulate the memory banks to achieve what I want?
  40.  
  41. >  Do I have to load the file into a memory bank?
  42.  
  43. It's the best way m8 :)
  44.  
  45. > I have experimented using BLOAD to load the file into my Amiga and 
  46. > it loads just fine.  The size of the example file I tried is 53,248 
  47. > bytes, obviously it would vary with the number of voices in the bank.  
  48. > I have used RESERVE AS WORK 10,55000 to reserve the bank and loaded 
  49. > the file into Bank 10.  I have also noticed that I can load the same 
  50. > file into memory when I use RESERVE AS WORK 10,2500.  Does the Bank 
  51. > Length have to be the same size as the file I load into memory.
  52.  
  53. Try this out...
  54.  
  55. F$="name of file"
  56. BNK=10
  57. Open In 1,F$
  58. L=Lof(1)
  59. Close 1
  60. Reserve As Work BNK
  61. Bload F$,Start(BNK)
  62.  
  63. This  will  open in your file and get it's actual size. Then Amos will
  64. create a bank this size and simply load the file into it.
  65.  
  66. Coz you're new to Amos, you can save this bank easily with:
  67.  
  68. Bsave "new filename),Start(BNK) to Start(BNK)+Length(BNK)
  69.  
  70. This  would save the original file to disk for you, but you don't need
  71. to do that just yet.....read on...
  72.  
  73. > Obviously I will have to know the file structure before I can do 
  74. > anything but I am working on getting this from the manufacturer.
  75.  
  76. Could  you  be a bit more specific? Is this just a RAW sample or what?
  77. If not, you may need to remove headers etc :(
  78.  
  79. Can  you  send a file to myself (or the Amos List guys if it's not too
  80. big)? So we can try and understand the file a bit more?
  81.  
  82. > Any help or advice, good or bad, would be greatly appreciated.  I 
  83. > know that coding an application like this is much different that 
  84. > coding a game but I am up for the challenge.  Thanks in advance.
  85.  
  86. Some aspects are the same and it's not too hard when you get going m8.
  87. BTW Do you have the Amos manual and is it Amos Classic or Amos Pro you
  88. are using? Coverdisk or full versions? Let us know :)
  89.  
  90. Right,  you  also  wanted  to  copy banks to other banks. Well, simply
  91. follow  the  above procedure and load you 5 or so files into different
  92. banks.
  93.  
  94. eg 10, 11, 12, 13 and 14
  95.  
  96. Now  you  will need a bank to hold ALL the others. Simply do something
  97. like this...
  98. ST=0
  99. For X=10 to 14
  100. XXX=Length(X)
  101. Add ST,XXX
  102. Next X
  103.  
  104. Now reserve a new BIG bank to hold all the others...
  105.  
  106. Reserve As Work 16,ST
  107.  
  108. And  use  the  Amos Copy command to copy the other banks across. Don't
  109. forget  to  update  mem  position also after each copy so next bank is
  110. copied to the BIG bank after the previously copied data :)
  111.  
  112. This is all from memory and may have little errors, but hey, I hope it
  113. helps.
  114.  
  115. Now  simply  save the Big bank as described earlier with BSave and you
  116. have your file :)
  117.  
  118. Let us know how you get on Declan.
  119.  
  120. Andy Gibson `97
  121.  
  122. -- 
  123.         _             _        _         _
  124. 9T7    _)\        ____)\      _)\   _____)\  #cONTACT mE fOR mORE iNFO#
  125.       /o� \      /o�____)    /o� \ /o�_____) #oN aREA51 rELEASES aLSO.#
  126. .�.  //    \    // /  __    //    \\\ \____ 
  127. -*- /.  O   \  /. /___\ \  /.  O   \\____  \  *andy@agasinc.demon.co.uk*
  128. ���/    _    \/   Y   Y  \/    _    \ ___\\ \
  129.    \ __/ \___/\_________ /\___/ \ __//______/        *Team AMOS*
  130.     Y                   Y        Y   Y      
  131. L8R :                   :        ï¿½   ï¿½              #cOMING sOON#
  132.     .     Andy Gibson (AGAS Productons)           *Roswell Gfx Adv*
  133.     ï¿½         -=<(aka SKiDZ/A51)>=-
  134.